﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DCT.Model;
using System.Windows;

namespace DCT.ViewModel
{
    public class AxleViewModel : DeviceBaseViewModel
    {
        #region Constructor

        public AxleViewModel(AxleModel axModel, AxleGraphModel axGraphModel)
            : base(axModel, axGraphModel, new Point(0.5, 0.5))
        {
            if (axModel == null)
                throw new ArgumentNullException("AxleModel");

            if (axGraphModel == null)
                throw new ArgumentNullException("AxleGraphModel");

            _axModel = axModel;
            _axGraphModel = axGraphModel;
        }

        #endregion // Constructor

        #region Fields

        AxleModel _axModel;
        AxleGraphModel _axGraphModel;

        #endregion // Fields

        #region Properties

        public AxleModel AxleModel
        {
            get
            {
                return _axModel;
            }
        }

        public AxleGraphModel AxleGraphModel
        {
            get
            {
                return _axGraphModel;
            }
        }

        public override double DeviceHeight
        {
            get
            {
                return base.DeviceHeight;
            }
        }

        public override double DeviceWidth
        {
            get
            {
                return base.DeviceWidth;
            }
        }

        #endregion //Properties
    }
}
